package com.wanlian.dao;


import com.wanlian.entity.OrgRoleGroup;
import com.wanlian.entity.RoleGroupAuthority;
import com.wanlian.model.ResultModel;

import java.util.List;

public interface RoleGroupAuthorityDao extends GenericDao<RoleGroupAuthority> {

    /**判断该分组下是否有此权限*/
    RoleGroupAuthority queryByPd(int authorityId,int groupId);

    RoleGroupAuthority queryByAuthorityId(int authorityId);

    ResultModel queryByParams(OrgRoleGroup orgRoleGroup);

    List<RoleGroupAuthority> queryByGid(int groupId);

    RoleGroupAuthority queryByGAid(int groupId,int authorityId);
}
